#include<stdio.h>
#include<windows.h>
#define MAX(x,y) ((x)>(y)?(x):(y))

int main()
{
	int arr[10] = { 11, 22, 3, 4, 5, 6, 77, 8, 9, 10 };
	int maxnum1 = 0,maxnum2 = 0;
	for (int i = 0; i < 10; i++){
		maxnum1 = MAX(arr[i], arr[i + 1]);
		maxnum2 = MAX(maxnum1, maxnum2);
	}
	printf("Maxnum = %d\n", maxnum2);
	system("pause");
	return 0;
}
